package com.jr.controller;


import com.jr.entity.Resume;
import com.jr.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * 简历表
 *
 * @author Snoopy
 * @since 1.0.0 2022-12-31
 */
@Controller

public class ResumeController {
    @Autowired
    private ResumeService resumeService;
    /**
     * 添加一分钟快速简历
     */
    @RequestMapping(value = "insertResume.do", produces = "text/html;charset=utf-8")
    public @ResponseBody String insertResume(Resume resume){
        int i = resumeService.addResume(resume);
        return i+"";
    }

}